import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class OrderService {

  constructor(private http: _HttpClient) {}

  // 查询订单列表
  queryOrderList(): Observable<any> {
    const url = "/shoporder/orderlist?pageStart=1&pageSize=25&status=";
    return this.http.get(url); 
  }

  // 发货
  shipping(data: any): Observable<any> {
    const url = "/shoporder/orderlist?pageStart=1&pageSize=25&status=";
    return this.http.post(url, data); 
  }

}
